//
//  BIImageBrowserViewController.h
//  iCarrouselLayout
//
//  Created by ET|冰琳 on 16/3/21.
//  Copyright © 2016年 Butterfly. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BIDimmerViewController.h"
#import "iCarrouselContainerView.h"
#import "iCarrouselFlowLayout.h"

@class BIImageBrowserContainerView;


@interface BIImageBrowserViewController: UIViewController

@property (nonatomic, strong) BIImageBrowserContainerView *browserView;

@property (nonatomic, strong) UICollectionViewLayout *sourceLayout;
@property (nonatomic, strong) NSIndexPath *selectIndexPath;
@property (nonatomic, assign) BOOL animateTransition;

@end





@interface BIImageBrowserLayout : iCarrouselFlowLayout

@property (nonatomic, assign) NSIndexPath *selectIndexPath;
@property (nonatomic, strong) UICollectionViewLayout *sourceLayout;


- (void)animateShowIndexPath:(NSIndexPath *)indexPath;
- (void)animateDismissIndexPath:(NSIndexPath *)indexPath completion:(dispatch_block_t)completion;
- (void)animateShowIndexPath:(NSIndexPath *)indexPath destinationSize:(CGSize)size;

@end



@interface BIImageBrowserContainerView : iCarrouselContainerView

@end



@interface BIImageBrowserCollectionViewCell : UICollectionViewCell

@property (nonatomic, strong) UIImageView *imageView;
@property (nonatomic, strong) UIActivityIndicatorView  *indicator;

- (void)animateScaleImage;

@end
